/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.Locale;
/*     */ import java.util.Map;
/*     */ import java.util.concurrent.ConcurrentHashMap;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.GuiChat;
/*     */ import net.minecraft.client.gui.GuiScreen;
/*     */ import net.minecraft.client.gui.GuiTextField;
/*     */ import net.minecraft.client.gui.inventory.GuiFurnace;
/*     */ import net.minecraft.inventory.IInventory;
/*     */ import net.minecraft.tileentity.TileEntityFurnace;
/*     */ import net.minecraftforge.fml.relauncher.ReflectionHelper;
/*     */ import org.yaml.snakeyamla.configuration.file.YamlConfiguration;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class wk
/*     */ {
/*     */   @eos/moe/dragoncore/t(v = {"取渲染帧耗时", "Screen_Get_Render_Time"})
/*     */   public static double y(vh a) {
/*  25 */     return a.i;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取屏幕宽度", "Screen_Get_Width", "w"})
/*     */   public static double z() {
/*  30 */     return pl.g.func_78327_c();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取屏幕高度", "Screen_Get_Height", "h"})
/*     */   public static double v() {
/*  35 */     return pl.g.func_78324_d();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取屏幕宽度比例", "Screen_Get_Width_Ratio", "wr"})
/*     */   public static String h() {
/*  40 */     return String.format("%.3f", new Object[] { Double.valueOf(sk.w / pl.g.func_78327_c()) });
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取屏幕高度比例", "Screen_Get_Height_Ratio", "hr"})
/*     */   public static String z() {
/*  45 */     return String.format("%.3f", new Object[] { Double.valueOf(sk.q / pl.g.func_78324_d()) });
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"设置显示", "显示", "Screen_Set_Show"})
/*     */   public static void z(String a, o o1) {
/*  50 */     boolean bool = false;
/*  51 */     if (o1 != null) {
/*  52 */       bool = (o1.v() == 0.0D);
/*     */     }
/*  54 */     GuiScreen guiScreen = (Minecraft.func_71410_x()).field_71462_r;
/*     */     
/*  56 */     if (guiScreen instanceof vh && (a.isEmpty() || ((vh)guiScreen).v.toLowerCase().equals(a))) {
/*  57 */       ((vh)guiScreen).l = bool;
/*  58 */     } else if (pl.i.containsKey(a)) {
/*  59 */       ((vh)pl.i.get(a)).l = bool;
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"设置隐藏", "隐藏", "Screen_Set_Hide"})
/*     */   public static void v(String a, o o1) {
/*  66 */     boolean bool = true;
/*  67 */     if (o1 != null) {
/*  68 */       bool = (o1.v() != 0.0D);
/*     */     }
/*  70 */     GuiScreen guiScreen = (Minecraft.func_71410_x()).field_71462_r;
/*     */     
/*  72 */     if (guiScreen instanceof vh && (a.isEmpty() || ((vh)guiScreen).v.toLowerCase().equals(a))) {
/*  73 */       ((vh)guiScreen).l = bool;
/*  74 */     } else if (pl.i.containsKey(a)) {
/*  75 */       ((vh)pl.i.get(a)).l = bool;
/*     */     } 
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"关闭界面", "返回游戏", "Screen_Close"})
/*     */   public static void t(vh a) {
/*  81 */     Minecraft minecraft = Minecraft.func_71410_x();
/*  82 */     Runnable runnable = () -> {
/*     */         if (a.isHud()) {
/*     */           a.func_146281_b();
/*     */           pl.i.entrySet().removeIf(());
/*     */         } else {
/*     */           minecraft.field_71439_g.func_71053_j();
/*     */         } 
/*     */       };
/*  90 */     if (minecraft.func_152345_ab()) {
/*  91 */       runnable.run();
/*     */     } else {
/*  93 */       minecraft.func_152344_a(runnable);
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"刷新缓存", "Screen_Cache_Update"})
/*     */   public static void h(vh a) {
/* 100 */     a.w = 0L;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"重置界面打开时间", "Screen_OpenTime_Reset"})
/*     */   public static void z(vh a) {
/* 105 */     a.n = System.currentTimeMillis();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取界面打开时间", "Screen_OpenTime_Get"})
/*     */   public static double t(vh a) {
/* 110 */     return a.n;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取界面存活时间", "Screen_ActiveTime"})
/*     */   public static double h(vh a) {
/* 115 */     return (System.currentTimeMillis() - a.n);
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"打开GUI", "Screen_Open_Gui"})
/*     */   public static void t(String a) {
/* 120 */     dh.d.h(a);
/*     */     
/* 122 */     YamlConfiguration yamlConfiguration = dh.d.h().get(a.toLowerCase(Locale.ROOT));
/* 123 */     if (yamlConfiguration != null) {
/* 124 */       sk.v(() -> pl.z(a, yamlConfiguration));
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取当前界面名", "Screen_Get_Name"})
/*     */   public static String z(vh a) {
/* 132 */     return (a.k == null) ? "" : a.k;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"打开HUD", "Screen_Open_Hud"})
/*     */   public static void h(String a) {
/* 137 */     YamlConfiguration yamlConfiguration = dh.d.h().get(a.toLowerCase(Locale.ROOT));
/* 138 */     if (yamlConfiguration != null) {
/* 139 */       sk.v(() -> pl.v(a, yamlConfiguration));
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"打开聊天栏", "Screen_Open_ChatGui"})
/*     */   public static void z(String a) {
/* 147 */     Minecraft.func_71410_x().func_147108_a((GuiScreen)new GuiChat(a));
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"设置聊天栏内容", "Screen_ChatGui_Set"})
/*     */   public static void v(String a, int i) {
/* 152 */     if ((Minecraft.func_71410_x()).field_71462_r instanceof GuiChat) {
/* 153 */       GuiChat guiChat = (GuiChat)(Minecraft.func_71410_x()).field_71462_r;
/* 154 */       GuiTextField guiTextField = (GuiTextField)ReflectionHelper.getPrivateValue(GuiChat.class, guiChat, new String[] { "inputField", "field_146415_a" });
/*     */ 
/*     */       
/* 157 */       if (i == 0) {
/* 158 */         guiTextField.func_146180_a(guiTextField.func_146179_b() + a);
/* 159 */       } else if (i == 1) {
/* 160 */         guiTextField.func_146180_a(a);
/* 161 */       } else if (i == 2) {
/* 162 */         guiTextField.func_146191_b(a);
/*     */       } 
/*     */     } else {
/* 165 */       z(a);
/*     */     } 
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取聊天栏内容", "Screen_ChatGui_Get"})
/*     */   public static String v() {
/* 171 */     if ((Minecraft.func_71410_x()).field_71462_r instanceof GuiChat) {
/* 172 */       GuiChat a = (GuiChat)(Minecraft.func_71410_x()).field_71462_r;
/* 173 */       GuiTextField guiTextField = (GuiTextField)ReflectionHelper.getPrivateValue(GuiChat.class, a, new String[] { "inputField", "field_146415_a" });
/*     */       
/* 175 */       return guiTextField.func_146179_b();
/*     */     } 
/* 177 */     return "";
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"关闭HUD", "Screen_Close_Hud"})
/*     */   public static void v(String a) {
/* 182 */     pl.v(a);
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取原界面名", "Screen_Original_Name"})
/*     */   public static String v(vh a) {
/* 187 */     return a.oa;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"熔炉是否熔炼中", "Screen_Furnace_IsBurning"})
/*     */   public static boolean v(vh a) {
/* 192 */     return (a.sa instanceof GuiFurnace && TileEntityFurnace.func_174903_a(((GuiFurnace)a.sa).field_147086_v));
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取熔炉燃料值", "Screen_Furnace_BurnTime"})
/*     */   public static double z(vh a) {
/* 197 */     return (a.sa instanceof GuiFurnace) ? v(((GuiFurnace)a.sa).field_147086_v) : 0.0D;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取熔炉进度值", "Screen_Furnace_CookProgress"})
/*     */   public static double v(vh a) {
/* 202 */     return (a.sa instanceof GuiFurnace) ? z(((GuiFurnace)a.sa).field_147086_v) : 0.0D;
/*     */   }
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"导出界面", "Screen_Save"})
/*     */   public static void v(vh a) {
/* 208 */     a.save();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"import", "Screen_Import"})
/*     */   public static void z(vh a, String str) {
/* 213 */     ConcurrentHashMap<String, YamlConfiguration> concurrentHashMap = dh.d.h();
/* 214 */     YamlConfiguration yamlConfiguration = concurrentHashMap.get(str.toLowerCase(Locale.ROOT));
/* 215 */     if (yamlConfiguration != null) {
/* 216 */       a.addImport(yamlConfiguration);
/*     */     }
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"unimport", "Screen_UnImport"})
/*     */   public static void v(vh a, String str) {
/* 222 */     a.removeImport(str);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\wk.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */